//
//  txtViewController.m
//  read
//
//  Created by 宋 on 15/12/14.
//  Copyright © 2015年 宋. All rights reserved.
//

#import "txtViewController.h"

@interface txtViewController ()
{
    UITextView * words;
}
@end

@implementation txtViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    CGRect rect = CGRectMake(12, 0, self.view.frame.size.width, self.view.frame.size.height - 88);
//    rect.origin.y = 0;
//    rect.size.height -= 64 + 44;
    words = [[UITextView alloc] initWithFrame:rect];
    words.text = _text;
    words.font = [words.font fontWithSize:24.0];
    words.editable = NO;
    words.scrollEnabled = NO;
//    words.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"th"]];
    
    UIImageView *im = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 88)];
    im.image = [UIImage imageNamed:@"th"];
    im.userInteractionEnabled = YES;
    words.backgroundColor = [UIColor clearColor];
    [im addSubview:words];
    [self.view addSubview:im];
    
//    [self.view addSubview:words];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
